//*****************************************************************************
//
// ABEC3 Solving Script
// Project: Simple_Horn on Infinite Baffle (IB)
//
//*****************************************************************************


Control_Solver
  f1=500;  f2=15000;  NumFrequencies=48;  Abscissa=log
  MeshFrequency=10kHz
  Sym=xy;  Dim=3D
  Meshing=Delaunay

SubDomain_Properties 'Horn-Bell'
  SubDomain=1
  ELType=Interior


SubDomain_Properties 'External'
  SubDomain=2
  ELType=Exterior
  IBPlane=z
  

// Vertices of Horn-Bell and Interface

Nodes  "Nodes"
  Scale=1mm
  // Mouth
  1000    0    0      0
  1001  100    0      0
  1002  100   50      0
  1003    0   50      0
  // Throat
  2000    0    0   -200
  2001    5    0   -200
  2002    5    5   -200
  2003    0    5   -200
  // Slit
  3001    5    0   -100
  3002    5   50   -100
  3003    0   50   -100
  // Interface
  6000    0    0     50
  6001  100    0     50
  6002  100   50     50
  6003    0   50     50


// Driving elements at horn throat

Elements "Horn-Driving"
  RefNodes="Nodes"
  SubDomain=1
  EdgeLength=10mm
  201    2000   2001   2002   2003   // Driving


Driving  "Driver"
  RefElements="Horn-Driving"
  DrvGroup=1001


// There are two options of horns:
// 1) Straight horn.
// 2) Horn with vertical dispersion slit.
// To enable toggle "Off".

// Straight horn

off Elements "1) Horn-Straight"
  RefNodes="Nodes"
  SubDomain=1
  101    1003   2003   2002   1002   // Top
  102    1001   1002   2002   2001   // Side


// Horn with dispersion slit.
// Note, that because of the narrowness of the slit 
// element-size should be smaller than the slit-width. 

Elements "2) Horn-Slit-Stub"
  RefNodes="Nodes"
  SubDomain=1
  EdgeLength=10mm
  101    3003   2003   2002   3002   // Top stub
  102    3001   3002   2002   2001   // Side stub

Elements "2) Horn-Slit-Bell"
  RefNodes="Nodes"
  SubDomain=1
  101    1003   3003   3002   1002   // Top bell
  101    1001   1002   3002   3001   // Side bell


// Interface is made of a box covering the mouth
// and connecting the horn interior with the
// exterior radiation space.

Elements "Interface-IB"
  RefNodes="Nodes"
  SubDomain=1, 2
  101    1001   6001   6002   1002  // Side
  102    6003   1003   1002   6002  // Top
  103    6003   6002   6001   6000  // Front

